﻿using Budget.Silver.Model;
using Budget.Silver.View;
using Budget.Silver.ViewModel;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;

namespace Budget.Silver.Core.Locator.Installers
{
    public class ViewModelInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(Types.FromThisAssembly().InSameNamespaceAs<MainView>());
            container.Register(Types.FromThisAssembly().InSameNamespaceAs<MainViewModel>());
        }
    }
}